# 主页的逻辑
from . import index_blue
from flask import render_template,current_app


@index_blue.route('/')
def index():
    """主页"""
    # 渲染主页页面
    return render_template('news/index.html')


@index_blue.route('/favicon.ico', methods = ['GET'])
def favicon():
    """title左侧的图标"""
    # return '/Users/Desktop/Information_28/info/static/news/favicon.ico'
    return current_app.send_static_file('news/favicon.ico')